home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
098
/
newlu.lqr
/
LUU16.DOC
< prev
next >
Wrap
Text File
|
1985-06-03
|
4KB
|
112 lines
LUU Command
-----------
Purpose: Add or replace members in an LU or LAR type library.
Format: LUU [d:][path]filename[.LBR] filename(s)
Remarks: The library name and at least one input member file name
must be supplied. The library name may contain a drive,
path names, and a filename with an extension. If the
library extension is omitted, .LBR is assumed.
There may be one or more member file names. Separate
each member name by one blank. Each member name may include
a drive, path names, and wildcard characters in the file
name and extension.
Notes: Written for the IBM PC using DOS 2.0 or later.
Copyright (c) 1984 by Vernon Buerg, for public domain use.
LUU duplicates the A(dd) and U(pdate) functions of LU.
When used with LUT and LUE, original file dates are
preserved and recorded.
The advantages of LUU are:
- smaller, so a copy can be kept on the "system" disk
- faster, mucho
- handles paths and wildcards
- retains input file (or member) date/time
- replaces in place
Examples:
LUU a:AQM.LBR b:*.AQM
LUU PCT366 b:PCT366.*
LUU c:\test\source.lbr b:ab??xx.* a:\prod\*.asc
File Formats:
An LBR file consists of a directory and one or more
"members". The directory contains from 4 to 256 entries.
Each entry is 32 bytes long and describes a member, if
one exists.
The first directory entry describes the directory
itself. Thus, the number of entries allocated is increased
by one.
All space allocation is in terms of sectors. Each
sector is 128 bytes long. Four directory entries fit
in one sector, so the directory is allocated in multiples
of four.
There are three directory formats recognized by LUU.
They are: 1) old LU, 2) LUPC, and 3) new LU86. When a new
library is created, LUU uses the new LU86 directory format.
If LUU is updating an existing LBR file, it uses the same
format that the file was created with.
Directory format
----------------
0 - File status; 0=active, 254=deleted, 255=free
1 - Member name; filename in FCB format, dir name is blanks
12 - Offset to data in sectors of 128 bytes
14 - Length of member in sectors.
16 - all zero for 'old LU' format
LUPC format extension
---------------------
1 - master directory name is ********DIR
16 - Original member file creation date, MM/DD/YY
24 - Original member file creation time, HH:MM:SS
LU86 Directory Format
---------------------
0 - File status; 0=active, 254=deleted, 255=free
1 - Member name; filename in FCB format, dir name is blanks
12 - Offset to data in sectors of 128 bytes
14 - Length of member in sectors.
16 - CRC word, or zero if Cyclic Redundancy Checking not used
18 - File create date, CP/M format
20 - File create time, DOS format
22 - Date file last updated (replaced), CP/M format
24 - Time file last updated, DOS format
26 - Number of bytes in last sector
27 - reserved/unused/zero
The date and time stamp fields vary in format. LUU uses
the LU86 format when it creates a library. Otherwise, the
format used when the library was created is used.
The member name for the directory entry is all blanks.
This allows for compatibility checking between versions
of LU and LUU.
Version 1.2, July 30, 1984.
Version 1.3, August 6, 1984.
- Ignore CRC bytes in directory.
- Update in place if replacement member is same size
or smaller, of is last member in directory.
Version 1.4, August 13, 1984.
- recognize new CPM date/time stamp format
Version 1.5, December 21, 1984,
- allow multiple member names to be specified
Version 1.6, January 23, 1984,
- default to LU86 directory format